heap vs stack interview question